<template>
  <div class="teacher-assessment-container">
    <el-card shadow="hover">
      <div class="header">
        <h2>中期考核管理</h2>
      </div>
      <el-table :data="assessments" stripe border style="width: 100%; margin-top: 20px;">
        <el-table-column prop="id" label="考核ID" width="120" />
        <el-table-column prop="project" label="项目名称" width="180" />
        <el-table-column prop="status" label="状态" width="100" />
        <el-table-column label="操作" width="200">
          <template #default="scope">
            <el-button size="small" @click="onDetail(scope.row)" icon="el-icon-view">详情</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
    <el-dialog v-model="dialogVisible" title="考核详情" width="500px">
      <el-form :model="form">
        <el-form-item label="考核ID"><el-input v-model="form.id" disabled /></el-form-item>
        <el-form-item label="项目名称"><el-input v-model="form.project" /></el-form-item>
        <el-form-item label="状态"><el-input v-model="form.status" /></el-form-item>
      </el-form>
      <template #footer>
        <el-button @click="dialogVisible=false">关闭</el-button>
      </template>
    </el-dialog>
  </div>
</template>
<script setup>
import { ref } from 'vue';
const assessments = ref([
  { id: 'A001', project: '创新项目1', status: '已通过' },
  { id: 'A002', project: '创新项目2', status: '待考核' },
]);
const dialogVisible = ref(false);
const form = ref({});
function onDetail(row) { form.value = { ...row }; dialogVisible.value = true; }
</script>
<style scoped>
.teacher-assessment-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 0;
  background: #f5f7fa;
  min-height: 100vh;
}
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
</style> 